<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/view/include.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>网上报名-合肥猎头网</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="${contextPath}/view/css/user.css" type="text/css"
	media="all" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<script src="${contextPath}/jquery/jquery-1.9.1.js"></script>
<script type="text/javascript">
$(function() {
	$("#btnImport").click(function() {
		if (!confirm("如果以前已经登录了成绩，将被清除，并以此次导入为准。确定吗?")) {
			return false;
		}
		$("#submitFlag").val("true");
		$("#scoreImportForm").submit();
	});
	$("#btnCancel").click(function() {
		$("#submitFlag").val("false");
		$("#scoreImportForm").submit();
	});
	<c:if test="${alert != null}">
	alert('${alert}');
	</c:if>
});
</script>
</head>
<body>
	<%@include file="/view/adminMenu.jsp" %>
	<div class="midBox">
		<div class="midTitle">成绩导入</div>
		<div class="cnt">
			<table width="100%" border="0" cellpadding="0" cellspacing="1"
				bgcolor="#E1E1E1">
				<tr>
					<td height="32" align="left" bgcolor="#FFFFFF" valign="middle" style="padding-left: 10px;">
						<span class="STYLE1">成绩导入</span>
					</td>
				</tr>
				<tr bgcolor="#FFFFFF">
					<td colspan="2" valign="top" align="center" height="448" style="padding-top: 30px;">
					<form:form id="scoreImportForm" name="scoreImportForm" method="post" action="${contextPath}/scoreImport.action"
						commandName="ScoreImportCommand" enctype="multipart/form-data">
						<form:hidden path="submitFlag" id="submitFlag" />
						<table width="80%" border="0" cellpadding="4" cellspacing="1" bgcolor="#E1E1E1">
							<tr bgcolor="#ffffff">
								<td style="height: 10px; text-align: right; width: 20%;">选择文件：</td>
								<td style="height: 10px; text-align: left;">
									<input size="50"
										type="file" name="scoreFile" id="scoreFile" /> <font
										color="#ff0000">&nbsp;&nbsp;<form:errors /></font>
								</td>
							</tr>
							<c:if test="${success == true}">
							<tr bgcolor="#ffffff">
								<td>&nbsp;</td>
								<td style="text-align: left;">
									导入成功！
								</td>
							</tr>
							</c:if>
							<tr bgcolor="#ffffff">
								<td>&nbsp;</td>
								<td style="text-align: left;">
									<input type="button" value="导入" id="btnImport"/>
									<input type="reset" value="重置" id="btnReset" />
									<input type="button" value="取消" id="btnCancel" />
								</td>
							</tr>
						</table>
					</form:form>
					</td>
				</tr>
			</table>
		</div>
	</div>
	<%@include file="/view/footer.jsp"%>
</body>
</html>